## 基础镜像自行更换
FROM registry.cn-hangzhou.aliyuncs.com/gebilaoyu/openjdk:18.0.1-oraclelinux8

LABEL org.opencontainers.image.authors=gebilaoyu

ENV JAVA_OPTS = ""

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone


## 将构建物复制到apps目录 重命名为app.jar
COPY target/app.jar /apps/app.jar


ENTRYPOINT ["sh","-c","java -jar $JAVA_OPTS /apps/app.jar"]
